﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LuKou.Web.Controllers.Base;
using System.Web.Mvc;
using LuKou.Shopspace.Domains;
using LuKou.Web.BLL.Service;

namespace LuKou.Web.Controllers.Website
{
    public class GoodsController : WebBaseController
    {
        public ActionResult Index(long id)
        {
            Goods goods = GoodsService.GetGoodsDetail(id);
            if (goods == null)
            {
                return this.RedirectIndex();
            }
            return View("detail", goods);
        }
    }
}
